package com.zhima;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;

@SpringBootApplication
public class ZhimaGenerator {
    @Autowired
    private MybatisEmcGenerator mybatisEmcGenerator;
    @PostConstruct
    public void init() {
        mybatisEmcGenerator.generateCode();
    }

    public static void main(String[] args) {
        SpringApplication.run(ZhimaGenerator.class, args);
    }
}
